import 'package:json_annotation/json_annotation.dart';

part 'user_info_bean_entity.g.dart';


@JsonSerializable()
class UserInfoBeanEntity extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'requestId')
  String requestId;

  @JsonKey(name: 'msg')
  String msg;

  @JsonKey(name: 'data')
  Data data;

  UserInfoBeanEntity(this.code,this.requestId,this.msg,this.data,);

  factory UserInfoBeanEntity.fromJson(Map<String, dynamic> srcJson) => _$UserInfoBeanEntityFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserInfoBeanEntityToJson(this);

}


@JsonSerializable()
class Data extends Object {

  @JsonKey(name: 'nickName')
  String nickName;

  @JsonKey(name: 'realName')
  String realName;

  @JsonKey(name: 'mobile')
  String mobile;

  Data(this.nickName,this.realName,this.mobile,);

  factory Data.fromJson(Map<String, dynamic> srcJson) => _$DataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$DataToJson(this);

}


